.class public Lcom/waiqin365/lightapp/im/adapter/az;
.super Lcom/waiqin365/base/a/a;


# instance fields
.field private b:Ljava/util/List;

.field private c:Z

.field private d:Lcom/waiqin365/lightapp/im/adapter/bb;

.field private e:Ljava/text/SimpleDateFormat;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 3

    invoke-direct {p0, p1}, Lcom/waiqin365/base/a/a;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->c:Z

    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string/jumbo v1, "yyyy-MM-dd HH:mm:ss"

    sget-object v2, Ljava/util/Locale;->CHINA:Ljava/util/Locale;

    invoke-direct {v0, v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->e:Ljava/text/SimpleDateFormat;

    iput-object p2, p0, Lcom/waiqin365/lightapp/im/adapter/az;->b:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/im/adapter/az;)Lcom/waiqin365/lightapp/im/adapter/bb;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->d:Lcom/waiqin365/lightapp/im/adapter/bb;

    return-object v0
.end method

.method private a(Lcom/waiqin365/base/db/imnotice/g;Landroid/widget/TextView;)V
    .locals 3

    const v2, 0x7f020370

    const-string/jumbo v0, "4"

    invoke-virtual {p1}, Lcom/waiqin365/base/db/imnotice/g;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p2, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    const-string/jumbo v0, "\u8ba2\u5355"

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void

    :cond_0
    const-string/jumbo v0, "2"

    invoke-virtual {p1}, Lcom/waiqin365/base/db/imnotice/g;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const v0, 0x7f020373

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setBackgroundResource(I)V

    const-string/jumbo v0, "\u65e5\u62a5"

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_1
    const-string/jumbo v0, "3"

    invoke-virtual {p1}, Lcom/waiqin365/base/db/imnotice/g;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const v0, 0x7f020372

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setBackgroundResource(I)V

    const-string/jumbo v0, "\u4efb\u52a1"

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_2
    const-string/jumbo v0, "1"

    invoke-virtual {p1}, Lcom/waiqin365/base/db/imnotice/g;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-virtual {p2, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    const-string/jumbo v0, "\u5ba1\u6279"

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_3
    const-string/jumbo v0, "5"

    invoke-virtual {p1}, Lcom/waiqin365/base/db/imnotice/g;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-virtual {p2, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    const-string/jumbo v0, "\u9500\u91cf"

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_4
    const-string/jumbo v0, "6"

    invoke-virtual {p1}, Lcom/waiqin365/base/db/imnotice/g;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    const v0, 0x7f020371

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setBackgroundResource(I)V

    const-string/jumbo v0, "\u62dc\u8bbf"

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_5
    const-string/jumbo v0, "7"

    invoke-virtual {p1}, Lcom/waiqin365/base/db/imnotice/g;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    const v0, 0x7f020374

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setBackgroundResource(I)V

    const-string/jumbo v0, "\u65fa\u5e97"

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_6
    const-string/jumbo v0, "8"

    invoke-virtual {p1}, Lcom/waiqin365/base/db/imnotice/g;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-virtual {p2, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    const-string/jumbo v0, "\u4fc3\u9500"

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_7
    invoke-virtual {p2, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    const-string/jumbo v0, "\u5176\u4ed6"

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0
.end method


# virtual methods
.method public a(ILandroid/view/View;Landroid/view/ViewGroup;Lcom/waiqin365/base/a/b;)Landroid/view/View;
    .locals 13

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/adapter/az;->b:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/im/domain/b;

    const v2, 0x7f0c0096

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v2}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const v3, 0x7f0c03cb

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v3}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const v4, 0x7f0c03cc

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v4}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    const v5, 0x7f0c04fd

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    const v6, 0x7f0c07c3

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v6}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    const v7, 0x7f0c03cf

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v7}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/TextView;

    const v8, 0x7f0c0084

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v8}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    const v9, 0x7f0c07c2

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v9}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/CheckBox;

    const v10, 0x7f0c07c4

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v10}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v10

    const v11, 0x7f0c07c5

    move-object/from16 v0, p4

    invoke-virtual {v0, p2, v11}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v11

    iget-object v12, p0, Lcom/waiqin365/lightapp/im/adapter/az;->b:Ljava/util/List;

    invoke-interface {v12}, Ljava/util/List;->size()I

    move-result v12

    add-int/lit8 v12, v12, -0x1

    if-ne p1, v12, :cond_0

    const/16 v12, 0x8

    invoke-virtual {v10, v12}, Landroid/view/View;->setVisibility(I)V

    const/4 v10, 0x0

    invoke-virtual {v11, v10}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    iget-boolean v10, p0, Lcom/waiqin365/lightapp/im/adapter/az;->c:Z

    if-eqz v10, :cond_1

    const/4 v10, 0x0

    invoke-virtual {v9, v10}, Landroid/widget/CheckBox;->setVisibility(I)V

    iget-boolean v10, v1, Lcom/waiqin365/lightapp/im/domain/b;->a:Z

    invoke-virtual {v9, v10}, Landroid/widget/CheckBox;->setChecked(Z)V

    :goto_1
    new-instance v10, Lcom/waiqin365/lightapp/im/adapter/ba;

    invoke-direct {v10, p0}, Lcom/waiqin365/lightapp/im/adapter/ba;-><init>(Lcom/waiqin365/lightapp/im/adapter/az;)V

    invoke-virtual {v9, v10}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    invoke-direct {p0, v1, v2}, Lcom/waiqin365/lightapp/im/adapter/az;->a(Lcom/waiqin365/base/db/imnotice/g;Landroid/widget/TextView;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/domain/b;->j()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v5, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/domain/b;->i()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v6, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :try_start_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/az;->e:Ljava/text/SimpleDateFormat;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/domain/b;->k()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v2, v9}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    invoke-static {v2}, Lcom/hyphenate/util/DateUtils;->getTimestampString(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v7, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_2
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/domain/b;->l()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v2, "1"

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/domain/b;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string/jumbo v1, "#b3b3b3"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v8, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#b3b3b3"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#b3b3b3"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#b3b3b3"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v5, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#b3b3b3"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v6, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#b3b3b3"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v7, v1}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_3
    const/16 v1, 0x8

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setVisibility(I)V

    const/16 v1, 0x8

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setVisibility(I)V

    const/16 v1, 0x8

    invoke-virtual {v6, v1}, Landroid/widget/TextView;->setVisibility(I)V

    return-object p2

    :cond_0
    const/4 v12, 0x0

    invoke-virtual {v10, v12}, Landroid/view/View;->setVisibility(I)V

    const/16 v10, 0x8

    invoke-virtual {v11, v10}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    :cond_1
    const/16 v10, 0x8

    invoke-virtual {v9, v10}, Landroid/widget/CheckBox;->setVisibility(I)V

    goto/16 :goto_1

    :catch_0
    move-exception v2

    const-string/jumbo v9, ""

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v2}, Ljava/text/ParseException;->printStackTrace()V

    goto :goto_2

    :cond_2
    const-string/jumbo v1, "#808080"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v8, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#1a1a1a"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#1a1a1a"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#1a1a1a"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v5, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#1a1a1a"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v6, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string/jumbo v1, "#808080"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v7, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_3
.end method

.method public a(I)Lcom/waiqin365/lightapp/im/domain/b;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/domain/b;

    return-object v0
.end method

.method public a(Lcom/waiqin365/lightapp/im/adapter/bb;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/adapter/az;->d:Lcom/waiqin365/lightapp/im/adapter/bb;

    return-void
.end method

.method public a(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/im/adapter/az;->c:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/adapter/az;->f()V

    return-void
.end method

.method public b()I
    .locals 1

    const v0, 0x7f030159

    return v0
.end method

.method public c()Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->c:Z

    return v0
.end method

.method public d()Ljava/util/List;
    .locals 4

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/domain/b;

    iget-boolean v3, v0, Lcom/waiqin365/lightapp/im/domain/b;->a:Z

    if-eqz v3, :cond_0

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_1
    return-object v1
.end method

.method public e()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/domain/b;

    const/4 v2, 0x1

    iput-boolean v2, v0, Lcom/waiqin365/lightapp/im/domain/b;->a:Z

    goto :goto_0

    :cond_0
    return-void
.end method

.method public f()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/domain/b;

    const/4 v2, 0x0

    iput-boolean v2, v0, Lcom/waiqin365/lightapp/im/domain/b;->a:Z

    goto :goto_0

    :cond_0
    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public synthetic getItem(I)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/im/adapter/az;->a(I)Lcom/waiqin365/lightapp/im/domain/b;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public notifyDataSetChanged()V
    .locals 2

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->c:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->d:Lcom/waiqin365/lightapp/im/adapter/bb;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/az;->d:Lcom/waiqin365/lightapp/im/adapter/bb;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/adapter/az;->d()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-interface {v0, v1}, Lcom/waiqin365/lightapp/im/adapter/bb;->a(I)V

    :cond_0
    invoke-super {p0}, Lcom/waiqin365/base/a/a;->notifyDataSetChanged()V

    return-void
.end method
